﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yichat.MicroService.Model
{
    public interface IDistributeionCacheEntry<TValue>
    {
        string Key { get; }
        TValue Value { get; }
        DateTime CreatedUtc { get; }
        CacheExpireStategy CacheExpireStategy { get; }
        DateTimeOffset? AbsoluteExpiration { get; }
        TimeSpan? SlidingExpiration { get; }
        DateTime LastAccessUtc { get; }
        bool IsExpired { get; }
    }
}
